package com.xyoto.community.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * 图片删除接口
 */
@ApiModel("图片删除接口")
@Data
public class DeletePictureDTO {

    @NotNull(message = "图片id不能为空")
    @Min(value = 1,message = "图片id非法")
    @ApiModelProperty("图片id")
    private Integer pictureId;

    @ApiModelProperty("图片分组标识")
    private String group;

    @ApiModelProperty("图片类别，动态图片的值为1")
    @NotNull(message = "图片类型值不可为空")
    private Integer type;
}
